﻿<%@ include file="/WEB-INF/views/jsp/common/taglibs.jsp" %>
<head>
    <title>${site}网购平台</title>
    <%@ include file="/WEB-INF/views/jsp/common/meta.jsp" %>
    <%@ include file="/WEB-INF/views/jsp/common/link.jsp" %>
    <link rel="stylesheet" type="text/css" href="${ctx}/static/pc/css/base.css?1607170150.25"/>
    <link rel="stylesheet" type="text/css" href="${ctx}/static/pc/css/page/welcome.css?1607170150.25"/>
    <link rel="stylesheet" type="text/css" href="${ctx}/static/pc/css/page/account/common.css"/>
    <link rel="stylesheet" type="text/css" href="${ctx}/static/pc/css/page/account/setPassword.css"/>
    <script src="${ctx}/static/pc/jsmin/jquery.js?1.12.4" type="text/javascript"></script>
    <script type="text/javascript" src="${ctx}/static/pc/jsmin/fml.js?1"></script>
    <script>
        fml.setOptions({
            'sversion': '1607170150.25',
            'defer': true,
            'modulebase': '${ctx}/static/pc/jsmin/'
        });
        var Meilishuo = {
            "config": {
                "nt": "1yQyN1tU7ssTVQ5GeZ16w7IF/0VPJbAp1lO2BxZa52X2e4+pti0UtSulDoUBzzqn",
                "main_site_domain": "/",
                "server_url": "/",
                "picture_url": "#",
                "captcha_url": "#",
                "im_url": "http://imlab.meilishuo.com/",
                "forSale": false,
                "controller": "welcome",
                "isLogin": true,
                "userInfo": {
                    "name": "阿猫来了",
                    "uid": "11cnkktq",
                    "avatar": "${ctx}/static/new1/v1/bdefaultavatar/03.jpg"
                }
            }
        };
        $(function () {
            //提交
            $("#submit").bind("click", function () {
                $.ajax({
                    type: "post",
                    dataType: "json",
                    url: '${ctx}/account/password/modify',
                    data: $('#setPasswordForm').serialize(),
                    success: function (data) {
                        if (data.statusCode == '1') {
                            alert("success");
                        } else {
                            alert(data.msg);
                        }
                    }
                });
            });
        });
    </script>
</head>
<body>
<div class="head">
    <%@ include file="/WEB-INF/views/jsp/common/header.jsp" %>
</div>
<div class="settings">
    <%@ include file="/WEB-INF/views/jsp/common/consumer-navigator.jsp" %>
    <div class="settings_box">
        <strong class="settings_title">用户密码</strong>
        <fieldset class="setPersonal">
            <form id="setPasswordForm">
                <div class="form-list" id="old-form">
                    <label class="account-label" for="old_password">当前密码</label>
                    <input style="display:none">
                    <!-- for disable autocomplete on chrome -->
                    <input autocomplete="off" class="l_ipt" id="old_password" name="oldPassword" type="password"
                           value=""/>
                    <strong style="display:none;"></strong>
                    <!-- <a id="forget"><strong>忘记密码？</strong></a> -->
                </div>
                <div class="form-list">
                    <label class="account-label" for="new_password">新密码</label>
                    <input style="display:none">
                    <!-- for disable autocomplete on chrome -->
                    <input autocomplete="off" class="l_ipt" id="new_password" name="newPassword" type="password" value=""/>
                    <strong></strong>
                </div>
                <div class="pw_safe none_f">
                    <span class="txt">安全程度</span>
                    <div class="pw_strength pw_weak pw_medium pw_strong">
                        <div class="pw_bar"></div>
                        <div class="pw_letter">
                            <span class="strength_l">低</span>
                            <span class="strength_m">中</span>
                            <span class="strength_h">强</span>
                        </div>
                    </div>
                </div>
                <div class="form-list">
                    <label class="account-label" for="confirm_password">确认密码</label>
                    <input style="display:none">
                    <!-- for disable autocomplete on chrome -->
                    <input autocomplete="off" class="l_ipt" id="confirm_password" name="confirmPassword" type="password" value=""/>
                    <strong class="setPasswordErrorMessageLine"></strong>
                </div>
                <input type="button" value="确 认" id="submit" class="ext_submit"/>
                <span class="submit_error"></span>
            </form>
        </fieldset>
    </div>
</div>
<%@ include file="/WEB-INF/views/jsp/common/foot.jsp" %>
<p style="display: none" class="biu-login">11cnkktq</p>
<%@ include file="/WEB-INF/views/jsp/common/right-nav.jsp" %>
<script type="text/javascript" src="pc/jsmin/jquery.js?1.12.4"></script>
<script type="text/javascript" src="__static/logger/0.1.8/logger.js"></script>
<script src="__newtown/im_web/assets/common/openim/index.js"></script>
<script src="pc/~page/pcenter/common/navbar+page/account/setPassword/setPassword+base?1607171728.25"></script>
<script>
    fml.use('page/pcenter/common/navbar');
    fml.use('page/account/setPassword/setPassword');
    fml.use('base');
    fml.iLoad();
</script>
</body>
</html>